package com.entrogy.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName DormEntity
 * @Description 归寝时间段的实体类
 * @Author luoxingjiang
 * @Date 2019/7/9 0009 下午 2:59
 * @Version 1.0
 **/
@SuppressWarnings("serial")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class BackTimeFrameEntity {

    private Integer id;

    private Integer schoolCode;

    private Integer gradeId;

    @DateTimeFormat(pattern="HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern="HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss")
    private Date endTime;

    //归寝考勤时段类型，如早、中、晚分别表示1、2、3
    private String timeTypeId;

}
